package com.clei.entity;

/**
 * 区域
 *
 * @author KIyA
 */
public class Area {

    /**
     * id
     */
    private Long id;

    /**
     * 名称
     */
    private String areaName;

    /**
     * 编码
     */
    private String areaCode;

    /**
     * 级别 0为顶级
     */
    private int level;

    /**
     * 父级编码 顶级区域的父级编码为空
     */
    private String parentCode;

    public Area(String areaName, String areaCode, int level, String parentCode) {
        this.areaName = areaName;
        this.areaCode = areaCode;
        this.level = level;
        this.parentCode = parentCode;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }
}
